home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / BlueLibrary Pack1 v1.1 / BlueLibrary Pack1 ƒ / BD Common ƒ / CStartupWindow.h < prev    next >
Text File  |  1996-04-19  |  1KB  |  50 lines

  1. // ===========================================================================
  2. //    CStartupWindow.h
  3. //    Written by Christophe Causer
  4. //    ©1996 BlueDays Software.  All Rights Reserved.
  5. //
  6. //    You may use this class in any non-commercial program without
  7. //    permission.  The only restriction is that you must credit the
  8. //    author in your about box.  For commercial use, please contact
  9. //    the author at the email address below.
  10. //                    
  11. //    Send bug-reports and comments to bluedays@kagi.com
  12. //
  13. // ===========================================================================
  14.  
  15. #pragma once
  16.  
  17. #include <LEventDispatcher.h>
  18. #include <LWindow.h>
  19. #include <LPeriodical.h>
  20.  
  21. class CStartupWindow :    public LWindow,
  22.                         public LPeriodical,
  23.                         public LEventDispatcher {
  24.  
  25.     public:
  26.         enum {class_ID = 'Stup'};
  27.     
  28.         static CStartupWindow*    CreateStartupWindowStream(LStream *inStream);
  29.  
  30.                         CStartupWindow();                        // Default constructor
  31.                         ~CStartupWindow();                        // Default destructor
  32.  
  33.                         CStartupWindow(LStream *inStream);        // Stream constructor
  34.  
  35.         virtual    void    FindCommandStatus(    CommandT    inCommand,
  36.                                             Boolean        &outEnabled,
  37.                                             Boolean&    outUsesMark,
  38.                                             Char16&        outMark,
  39.                                             Str255        outName);
  40.  
  41.                 void    Display();                                // Can't be overrided
  42.  
  43.                 void    DisplayForWait();
  44.                 void    Wait();
  45.     protected:
  46.         Int32    mStartupDelay;
  47.  
  48.         virtual    void    SpendTime(const EventRecord &inMacEvent);
  49. };
  50.